/* 数据字典 */
import httpRequest from '@/utils/httpRequest'
// 获取字典列表
export function getDictList () {
  return httpRequest({
    url: '/sys/dict/type/list',
    method: 'get'
  })
}

// 添加字典
export function addDict () {
  return httpRequest({
    url: '/sys/dict/saveDictValue',
    method: 'get'
  })
}
// 修改字典类型状态
export function typemodifyState (params) {
  return httpRequest({
    url: '/sys/dict/type-modify-state',
    method: 'post',
    data: params
  })
}
// 修改字典值状态
export function valuemodifyState (params) {
  return httpRequest({
    url: '/sys/dictvalue/value-modify-state',
    method: 'post',
    data: params
  })
}
